package com.hdaccp.letting2.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.hdaccp.letting2.entity.Userinfo;
import com.hdaccp.letting2.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.List;
@Controller
@RequestMapping("/user")
public class UserInfoController {
    @Resource
    //@Reference
    private UserInfoService userInfoService ;
    @RequestMapping("/query")
    @ResponseBody
    public List<Userinfo> query(){
        return userInfoService.query() ;
    }
}
